<?php
class ORMpz_ecom_product_image {
  public function toObj($args) {
    $obj = new stdClass();
    if (isset($args->track_id)) {
      $obj->track_id =  $args->track_id;
    }
    if (isset($args->product_track_id)) {
      $obj->product_track_id =  $args->product_track_id;
    }
    if (isset($args->name)) {
      $obj->name =  $args->name;
    }
    if (isset($args->name_on_server)) {
      $obj->name_on_server =  $args->name_on_server;
    }
    if (isset($args->size)) {
      $obj->size =  $args->size;
    }
    if (isset($args->width)) {
      $obj->width =  $args->width;
    }
    if (isset($args->height)) {
      $obj->height =  $args->height;
    }
    if (isset($args->path)) {
      $obj->path =  $args->path;
    }
    if (isset($args->path_small)) {
      $obj->path_small =  $args->path_small;
    }
    if (isset($args->path_tn)) {
      $obj->path_tn =  $args->path_tn;
    }
    if (isset($args->is_default)) {
      $obj->is_default =  $args->is_default;
    }
    return $obj;
  }
}
?>
